
import java.util.Scanner;
public class Test1{
    public static void main(String[] args) {
    	String administrator;
    	Scanner input=new Scanner(System.in);
    	System.out.println("please scanf the name is Administrator!!!");
    	administrator=input.nextLine();
    	Feeder feerder=new Feeder(administrator);
    	Animal animal[]=new Animal[]{
    			new Lion(),
    			new Monkey(),new Monkey(),new Monkey(),new Monkey(),new Monkey(),
    			new Pigeon(),new Pigeon(),new Pigeon(),new Pigeon(),new Pigeon(),
    			new Pigeon(),new Pigeon(),new Pigeon(),new Pigeon(),new Pigeon()
    	};
    	for(int i=0;i<1;i++){
    		feerder.feedAnimal(animal);
    	}   	
    }
}
abstract class Animal{
	public abstract void eat();
}
class Lion extends Animal{
	public void eat(){
		System.out.println("hohohoho!meat!!");
	}
}
class Monkey extends Animal{
	public void eat(){
		System.out.println("hahahahaha banana!!!");
	}
}
class Pigeon extends Animal{
	public void eat(){
		System.out.println("gegege");
	}
}
class Feeder{
	private String name;
	public  Feeder(String name){
		this.name=name;
	}
	public void feedAnimal(Animal[] animal){
		for(Animal scanf : animal){
		     scanf.eat();
	    }	
    }
}
